package com.andersen.web.controller;

import com.andersen.web.service.ComponentTypeTree;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
public class IndexController extends AbstractController{

    @RequestMapping(value = "/index", method = RequestMethod.GET)
      public String printHello(ModelMap model) {
        model.addAttribute("message", "Hello Olo-lo!");
        return "index";
    }
    
    /*@RequestMapping(value = "/tree", method = RequestMethod.GET)
      public String printTree(ModelMap model) {
        
        String html = componentTypeService.getComponentTypeTree().toHTML();
        model.addAttribute("tree", html);
        return "tree";
    }*/
    
}
